package cn.broadsense.biz.dto;

import cn.broadsense.common.annotation.TreeChildren;
import cn.broadsense.common.annotation.TreeKey;
import cn.broadsense.common.annotation.TreeParentKey;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @author lijian
 * @description
 * @date 2024年09月11日 下午6:04
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@ApiModel("标签信息树结构")
public class TagInfoTreeDto extends TreeDto implements Serializable {
    private static final long serialVersionUID = 1L;

    @TreeKey
    private Integer id;

    @TreeParentKey
    private Integer parentId;

    private String name;

    @TreeChildren
    private List<?> children;

    @ApiModelProperty("标签编码")
    private String code;

    @ApiModelProperty("标签类型名称")
    private String typeName;

    @ApiModelProperty("规则名称")
    private String ruleName;

    @ApiModelProperty("更新时间")
    private Date updateTime;

    private String parentName;

    private Integer tagTypeId;

    private Integer tagRuleId;
}
